import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import menu from '@/components/menu'
import echarts from '@/components/echarts/echarts'
import rk_manage from '@/components/warehouse/rk_manage'
import Procurement from '@/components/procurement/procurement'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/menu',
      name: 'menu',
      component: menu,
      children: [
        {
          path: 'echarts',
          name: 'echarts',
          component: echarts
        },
        {
          path: 'rk_manage',
          name: 'rk_manage',
          component: rk_manage
        },
        {
          path: 'procurement',
          component: Procurement
        }
      ]
    },

  ]
})
